package com.huawei.appmarket.service.predownload.jobservice;

import android.app.job.JobParameters;
import android.app.job.JobService;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import com.huawei.appmarket.service.alarm.control.RepeatingTaskManager;
import o.Logger;
import o.ContentManager;
import o.edq;

@RequiresApi(api = 21)
public class WlanUpdateJobService extends JobService {
    public static void schedule() {
        Logger.ˎ("JobSchedulerManager", "WlanUpdateJobService schedule, result: " + edq.ॱ().ˎ(10002, true, true, 0, 0));
    }

    public boolean onStartJob(JobParameters jobParameters) {
        Logger.ˎ("JobSchedulerManager", "WlanUpdateJobService job started");
        Bundle bundle = new Bundle();
        bundle.putInt(RepeatingTaskManager.KEY_PRE_DOWNLOAD_START_TYPE, 10);
        RepeatingTaskManager.executeJobTasks(ContentManager.getInstant().getContext(), bundle, 10002);
        return false;
    }

    public boolean onStopJob(JobParameters jobParameters) {
        Logger.ˎ("JobSchedulerManager", "WlanUpdateJobService job stopped");
        return false;
    }
}
